<!DOCTYPE html>
<html>
<head>
    <title>{$site_info.site_name|default=''}</title>
    <include file="public@head"/>
    <include file="student/public@head"/>
    <link href="__STATIC__/student/css/detail.css" rel="stylesheet" type="text/css">
</head>
<body>
    <include file="student/public@header"/>
    <include file="student/public@grade"/>
    <include file="student/public@login"/>
    <include file="student/public@addr"/>

    <div class="detail_kc">
        <div class="top">
            <div class="content">
                <img class="thumb" src="{$info.thumb}">
                <div class="msg">
                    <div class="des">{$info.name}</div>
                    <div class="msgnum">
                        <text>{$info.lesson}</text>
                        <text> | </text>
                        <text>{$info.views}人在学</text>
                    </div>
                    <div class="tmsg">
                        
                        <span class="msg0">
                            <img src="{$info['userinfo']['avatar']}">
                            <span>
                                <div class="avatar">{$info['userinfo']['user_nickname']}</div>
                                <div class="tip">主讲老师</div>
                            </span>
                            
                        </span>
                        <if condition="$info['tutor'] neq []">
                            <span class="msg1">
                                <img src="{$info['tutor'][0]['avatar']}">
                                <span>
                                    <div class="avatar">{$info['tutor'][0]['user_nickname']}</div>
                                    <div class="tip">辅导老师</div>
                                </span>
                            </span>
                        </if>
                    </div>
                    <if condition="$info.ifbuy eq 1">
                        <div class="money">已付费</div>
                        <button class="comment">发表评价</button>
                    <else/>
                        <if condition="$info.paytype eq 0">
                            <div class="mian">{$info.payval}</div>
                        <elseif condition="$info.paytype eq 1" />
                            <div class="money">￥<text>{$info.payval}</text></div>
                        <else/>
                            <div class="mi">{$info.payval}</div>
                        </if>
                        
                        <if condition="$info.paytype eq 1 && $info.ifbuy eq 0">
                            <if condition="$info.iscart eq 1"><button class="yCart">已加购物车</button><else/><button data-id="{$info.id}" class="addCart">加入购物车</button></if><button class="goBuy">立即购买</button>
                        </if>
                        <if condition="($info.paytype eq 1 && $info.ifbuy eq 1) || $info.paytype eq 0 || ($info.paytype eq 2 && $info.ifbuy eq 1)">
                            <button class="comment">发表评价</button>
                        </if>
                        
                    </if>

                </div>
            </div>
        </div>
        <div class="bcontent">
            <div class="nav">
                <a class="text js b_fff" href="javascript:void(0);">介绍</a>
                <a class="text kcmu b_f6f6" href="javascript:void(0);">课程目录</a>
                <a class="text pj b_f6f6" href="javascript:void(0);">评价</a>
            </div>
            <div class="area1">
                <div class="tip">
                    <text>课程介绍</text>
                </div>
                <div class="detail">
                    {$info.info}
                </div>
                <div class="tip">
                    <text>讲师介绍</text>
                </div>
                <div class="teacherinfo">
                    <a href="/student/teachers/detail?touid={$info['userinfo']['id']}"><img class="avatar" src="{$info['userinfo']['avatar']}"></a>
                    <div class="info">
                        <div class="name">
                            <text>{$info['userinfo']['user_nickname']}</text>
                            <text class="text1">主讲老师</text>
                        </div>
                        <div class="textarea1">
                            {$info['userinfo']['experience']}
                        </div>
                    </div>
                </div>
                    <if condition="$info['tutor'] neq []">
                    <div class="teacherinfo">
                        <a href="/student/teachers/detail?touid={$info['tutor'][0]['id']}"><img class="avatar" src="{$info['tutor'][0]['avatar']}"></a>
                        <div class="info">
                            <div class="name">
                                <text>{$info['tutor'][0]['user_nickname']}</text>
                                <text class="text1">辅导老师</text>
                            </div>
                            <div class="textarea1">
                                {$info['tutor'][0]['experience']}
                            </div>
                        </div>
                    </div>
                </if>
            </div>
            <div class="area2 none">
                <div class="tip">
                    <text>课程目录</text>
                </div>
                <div class="classlist">
                    <volist name="lessonlist" id="item">
                        <div class="li">
                            <div class="title">
                                {$item.name}
                                <img class="up" src="__STATIC__/student/images/detail/up.png">
                                <img class="down none" src="__STATIC__/student/images/detail/down.png">
                            </div>
                            <div class="zj">
                                <volist name="$item.list" id="item1">
                                    <div style="cursor:pointer;" class="lix" data-islive="{$item1.islive}"  data-url="{$item1.url}" data-type="{$item1.type}" data-isenter="{$item1.isenter}" data-id="{$item1.id}">
                                        <div class="xuhao">{$key+1}</div>
                                        <div class="middle">
                                            <div class="tops">
                                                <text class="text1 <if condition='$item1.isenter eq 0'>c_c969696</if>">{$item1.name}</text>
                                                <if condition="$item1.islast eq 1">
                                                    <text class="text2">上次学到</text>
                                                </if>
                                            </div>
                                            <div class="bottom">
                                                <if condition="$item1.type eq 1">
                                                    <text class="bq">图文</text>
                                                <elseif condition="$item1.type eq 2" />
                                                    <text class="bq">视频</text>
                                                <elseif condition="$item1.type eq 3" />
                                                    <text class="bq">音频</text>
                                                <else/>
                                                    <text class="bq">直播</text>
                                                </if>
                                                
                                                <if condition="$item1.type gt 3">
                                                    <if condition="$item1.islive eq 0">
                                                        <text class="time">{$item1.time_date}</text>
                                                    <elseif condition="$item1.islive eq 2" />
                                                        <text class="time">已结束</text>
                                                    </if>
                                                </if>
                                                
                                            </div>
                                        </div>
                                        <div class="right">
                                            
                                            <if condition="$item1.status eq 1">
                                                <text class="on">试学</text>
                                            <elseif condition="$item1.status eq 2" />
                                                <text>已学完</text>
                                            <elseif condition="$item1.status eq 3" />
                                                <text class="on">正在直播</text>
                                            <elseif condition="$item1.status eq 4" />
                                                <img class="suo none" src="__STATIC__/student/images/detail/suo.png">
                                            </if>
                                        
                                        </div>
                                    </div>
                                </volist>
                            </div>
                        </div>
                    </volist>
                </div>
            </div>
            <div class="area3 none">
                <div class="tip ">
                    <text>课程评价（{$info.comments}）</text>
                </div>
                <div class="commentlist">
                    <volist name="$commentlist" id="item">
                        <div class="li">
                            <img class="avatar" src="{$item.avatar}">
                            <div class="mess">
                                <div class="name">{$item.user_nickname}</div>
                                <div class="star">
                                    <if condition="$item.star eq 0">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                    <elseif condition="$item.star eq 1" />
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                    <elseif condition="$item.star eq 2" />
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                    <elseif condition="$item.star eq 3" />
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                    <elseif condition="$item.star eq 4" />
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                                    <else/>
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                        <img class="starimg" src="__STATIC__/student/images/detail/star_yes.png">
                                    </if>
                                </div>
                                <div class="comon">{$item.content}</div>
                            </div>
                            <div class="date">
                                {$item.add_time}
                            </div>
                        </div>
                    </volist>

                    <if condition="$isMore eq 1">
                        <div class="look_more"><a style="color:#9e9a9a" href="javacript:void(0);">查看更多...</a></div>
                    </if>
                </div>
            </div>

        </div>
    </div>

    
    <div class="common_zhe none">
        <div class="table">
            <div class="top">
                <text>发表言论</text>
                <img src="__STATIC__/student/images/detail/black_cha.png">
            </div>
            <div class="content">
                <div>评价课程：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$info.name}</div>
                <div class="li2">星级评分：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <span>
                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                        <img class="starimg" src="__STATIC__/student/images/detail/star_no.png">
                    </span>
                </div>
                <div class="li3">评价内容：</div>
                <textarea class="textarea" placeholder="说一下对老师讲解内容的看法吧~"></textarea>
                <button class="submit">确认提交</button>
            </div>
        </div>
    </div>
    <include file="student/public@footer"/>
    <include file="student/public@scripts"/>
    <script src="__STATIC__/student/js/pick-pcc.min.1.0.1.js"></script>
    <script>
        $(".pick-area1").pickArea();
    </script>
    <script>
        var courseid = "{$info['id']}"; //课程id
        var liveuid = "{$info['uid']}";//老师id
        var star = 0;//星级
        var page = 1;//分页
        var paytype = "{$info.paytype}";
        var type = 0;//0课程 1套餐
        var method = 0;//0直接购买 1购物车
        var totalmoney = "{$info.payval}";//价格
        var name = "{$info.name}";//名称
        var ismaterial =  "{$info['ismaterial']}"; //是否含有教材
        var ifbuy = "{$info['ifbuy']}"; //是否购买
    </script>
    <script src="__STATIC__/student/js/detail.js"></script>
</body>
</html>
